﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ICM_Item_Receive.aspx.cs" Inherits="KPIS.GERP.GIMS.APP.APP_UI.Add_Form.ICM_Item_Receive" %>
<%@ Register Assembly="BasicFrame.WebControls.BasicDatePicker" Namespace="BasicFrame.WebControls" TagPrefix="BDP" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<%@ Register TagPrefix="custom" Namespace="KPIS.Customs.UI" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
    <link rel="StyleSheet" href="../../Styles/StyleSheet.css" type="text/css">  
    <style type="text/css">
        .style1
        {
            width: 62px;
        }
    
.RadGrid_Hay
{
    font:12px/16px "segoe ui",arial,sans-serif;
}

.RadGrid_Hay
{
    border:1px solid #bbb99d;
    background:#fff;
    color:#272722;
}

.RadGrid_Hay .rgMasterTable
{
    border-collapse:separate;
}

.RadGrid_Hay .rgMasterTable
{
    font:12px/16px "segoe ui",arial,sans-serif;
}

    </style>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" >
        </asp:ScriptManager>
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            <script type="text/javascript" src="../../Scripts/Common.js"></script>
            <script type="text/javascript">
                var cancelDropDownClosing = false;
                
                function onTextChangeGeneral(sender) {
                    if (sender.get_value() == "") {
                        sender.set_text("");
                    }
                }

                function onTextChange(sender) {
                    var tree = $find('<%= ((RadTreeView)((RadComboBox)cbBgmExpProject).Items[0].FindControl("TreeViewBgmExpProject")).ClientID %>');
                    var node = tree.findNodeByText(sender.get_text());
                    if (node == null) {
                        sender.set_text("");
                    }
                }

                function StopPropagation(e) {
                    e.cancelBubble = true;
                    if (e.stopPropagation) {
                        e.stopPropagation();
                    }
                }

                function OnClientDropDownClosingHandler(sender, e) {
                    e.set_cancel(cancelDropDownClosing);
                }

                
                
                function OnClientNodeClickingHandler(sender, e) {
                    var node = e.get_node();
                    if (node.get_category() != "EXPENSE") {
                        node.toggle();
                    }
                    else {
                        var combo = $find('<%= cbBgmExpProject.ClientID %>');
                        combo.set_text(node.get_text());
                        cancelDropDownClosing = false;
                        combo.hideDropDown();
                        $find("<%= RadManager1.ClientID %>").ajaxRequest("ExpensePlan : " + node.get_value());
                    }
                }

               

                function GetRadWindow() {
                    var oWindow = null;
                    if (window.radWindow)
                        oWindow = window.RadWindow; //Will work in Moz in all cases, including clasic dialog      
                    else if (window.frameElement.radWindow)
                        oWindow = window.frameElement.radWindow; //IE (and Moz as well)      
                    return oWindow;
                }

                function CloseWindow() {
                    GetRadWindow().Close();
                }

                function AfterChange(sender) {
                    var date = sender.getSelectedDateFormatted();
                    var all_date = date.split("/");
                    var day = all_date[0];
                    var month = all_date[1];
                    var year = parseInt(all_date[2]) + 543;
                    if (day.length == 1) {
                        day = '0' + day;
                    }
                    if (month.length == 1) {
                        month = '0' + month;
                    }

                //    var maskText = $find("<%= txtDate.ClientID %>");
                //    maskText.SetValue(day + month + year);
                }

                function AfterChange2(sender) {
                    var date = sender.getSelectedDateFormatted();
                    var all_date = date.split("/");
                    var day = all_date[0];
                    var month = all_date[1];
                    var year = parseInt(all_date[2]) + 543;
                    if (day.length == 1) {
                        day = '0' + day;
                    }
                    if (month.length == 1) {
                        month = '0' + month;
                    }

                 //   var maskText = $find("<%= txtDateReq.ClientID %>");
                  //  maskText.SetValue(day + month + year);
                }

                var dtCh = "/";

                function validateDate(src, args) {
                    var retVal = false;
                    var txtDate = $find("<%= txtDate.ClientID %>");
                    if (txtDate.GetValue().length > 0) {
                        if (isDate(txtDate.get_valueWithLiterals()) == false) {
                            args.IsValid = retVal;
                        }
                    }
                }

                function validateDate2(src, args) {
                    var retVal = false;
                    var txtDate = $find("<%= txtDateReq.ClientID %>");
                    if (txtDate.GetValue().length > 0) {
                        if (isDate(txtDate.get_valueWithLiterals()) == false) {
                            args.IsValid = retVal;
                        }
                    }
                }

                function slideConfig(uniqudId, dir) {
                    var opposite = (dir == 'Down' ? 'Up' : 'Down');

                    $telerik.$(".moduleDivSlimContent")["slide" + dir](300);
                    $telerik.$(".moduleDivSlimCollapsible span.configButton")
		            .removeClass("toggleUp")
		            .removeClass("toggleDown")
		            .addClass("toggle" + opposite);

                    $telerik.$(".moduleDivSlimCollapsible")[0].href = "javascript:slideConfig('" + uniqudId + "','" + opposite + "');";
                    $telerik.$("input[name='" + uniqudId + "']").val(dir == "Down" ? "true" : "false");
                }

                var detail = 0;
                var item = 0;
                var committee = 0;
                var file = 0;

                function OnClientTabSelecting(sender, eventArgs) {
                    var value = eventArgs.get_tab().get_value();
                    if ((value == "Item" && item == 0)
                       || (value == "Committee" && committee == 0)
                       || (value == "File" && file == 0)
                    ) {
                        eventArgs.set_cancel(true);
                    }
                }

                function getSourceFile() {
                    extArray = new Array(".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".pdf", ".rtf");
                    allowSubmit = false;
                    var file = document.getElementById('<%= attachment.ClientID %>');
                    var source_file = document.getElementById('<%= hdSourceFile.ClientID %>');
                    var div_part = document.getElementById('<%= uploadFile_div.ClientID %>');
                    value = file.value;
                    if (value.length == 0) {
                        return;
                    }
                    while (value.indexOf("\\") != -1) {
                        value = value.slice(value.indexOf("\\") + 1);
                    }
                    ext = value.slice(value.indexOf(".")).toLowerCase();
                    for (var i = 0; i < extArray.length; i++) {
                        if (ext.indexOf(extArray[i]) >= 0) {
                            allowSubmit = true; break;
                        }
                    }
                    if (allowSubmit) {
                        source_file.value = file.value;
                    }
                    else {
                        alert("ไฟล์เอกสารใช้ได้เฉพาะนามสกุล .doc, .docx, .xls, .xlsx, .ppt, .pptx, .pdf, .rtf เท่านั้น");
                        div_part.innerHTML = div_part.innerHTML;
                    }
                }

                function SelectItem() {
                    var tooltip = $find("TipEachItem");
                    tooltip.hide();
                }

                var sumInput = null;
                var tempValue = 0.0;

                function Load(sender, args) {
                    sumInput = sender;
                }

                function Blur(price, quantity) {
                    var text1 = $find(price);
                    var text2 = $find(quantity);
                    sumInput.set_value(tempValue + (text1.GetValue() * text2.GetValue()));
                }

                function Focus(price, quantity) {
                    var text1 = $find(price);
                    var text2 = $find(quantity);
                    tempValue = sumInput.get_value() - (text1.GetValue() * text2.GetValue());
                }

                function ChangeCommitteeType(type, internalName, externalName, externalDescr) {
                    var value = document.getElementById(type).value;
                    var panelInternalName = document.getElementById(internalName);
                    var panelExternalName = document.getElementById(externalName);
                    var panelExternalDescr = document.getElementById(externalDescr);
                    if (value == "1") { //เป็นบุคลากรภายใน
                        panelInternalName.style.visibility = "visible";
                        panelExternalName.style.visibility = "hidden";
                        panelExternalDescr.style.visibility = "hidden";
                    }
                    else {
                        panelInternalName.style.visibility = "hidden";
                        panelExternalName.style.visibility = "visible";
                        panelExternalDescr.style.visibility = "visible";
                    }
                }

                function ChangeCommitteeInternal(internalName, externalName, externalDescr) {
                    var panelInternalName = document.getElementById(internalName);
                    var panelExternalName = document.getElementById(externalName);
                    var panelExternalDescr = document.getElementById(externalDescr);
                    panelInternalName.style.visibility = "visible";
                    panelExternalName.style.visibility = "hidden";
                    panelExternalDescr.style.visibility = "hidden";
                }

                function ChangeCommitteeExternal(internalName, externalName, externalDescr) {
                    var panelInternalName = document.getElementById(internalName);
                    var panelExternalName = document.getElementById(externalName);
                    var panelExternalDescr = document.getElementById(externalDescr);
                    panelInternalName.style.visibility = "hidden";
                    panelExternalName.style.visibility = "visible";
                    panelExternalDescr.style.visibility = "visible";
                }

                function ChangeDurationRequire(durationRequire, dateRequire, datePicker) {
                    var panelDuration = document.getElementById(durationRequire);
                    var panelDate = document.getElementById(dateRequire);
                    var panelDatePicker = document.getElementById(datePicker);
                    panelDuration.style.visibility = "visible";
                    panelDate.style.visibility = "hidden";
                    panelDatePicker.style.visibility = "hidden";
                }

                function ChangeDateRequire(durationRequire, dateRequire, datePicker) {
                    var panelDuration = document.getElementById(durationRequire);
                    var panelDate = document.getElementById(dateRequire);
                    var panelDatePicker = document.getElementById(datePicker);
                    panelDuration.style.visibility = "hidden";
                    panelDate.style.visibility = "visible";
                    panelDatePicker.style.visibility = "visible";
                }


                }
            </script>
        </telerik:RadCodeBlock>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" BackgroundPosition="None" Skin="Outlook">
        </telerik:RadAjaxLoadingPanel>
        <telerik:RadAjaxManager runat="server" ID="RadManager1" OnAjaxRequest="RadManager1_AjaxRequest">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadManager1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="udPanelItem" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="panelBgmExpPlan" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="panelHidden" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="cbPprType">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="udPanelUpdate" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="BasicDatePicker1" />
                        <telerik:AjaxUpdatedControl ControlID="BasicDatePicker2" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="cbPprMethod">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="udPanelUpdate" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="BasicDatePicker1" />
                        <telerik:AjaxUpdatedControl ControlID="BasicDatePicker2" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="cbPurchaseMethod">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="panelAddCommittee_Wizard" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="panelCommitteeGroup" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="rblAddCommittee">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="panel_Committee" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="nextButton_Detail">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="nextButton_Detail" />
                        <telerik:AjaxUpdatedControl ControlID="panel_Item" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="nextButton_Item">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="nextButton_Item" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="backButton_Item">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="backButton_Item" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="nextButton_Committee">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="nextButton_Committee" />
                        <telerik:AjaxUpdatedControl ControlID="panel_File" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="backButton_Committee">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="backButton_Committee" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="backButton_File">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="backButton_File" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="finishButton_File">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="finishButton_File" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btnAddItem">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="TipAddItem" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btnSelectItem">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="Grid_SubItem" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btnDeleteItem">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="Grid_SubItem" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="TreeItem">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="TreeItem" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="panelCommand_Item">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="panel_Item" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="panelCommand_Committee">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="panel_Committee" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="panelCommand_File">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="panel_File" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btnAddGroupCommittee">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="panelCommitteeGroup" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="Grid_SubCommittee" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="panelNumCommitteeFunction" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="cblCommitteeFunction" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="rblCommitteeType">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="panelInternal" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="panelExternal" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
    
        <asp:Panel ID="panelHidden" runat="server">
            <asp:HiddenField ID="hdSeq" runat="server" Value="" />
            <asp:HiddenField ID="hdSourceFile" runat="server" Value="" />
            <asp:HiddenField ID="hdRule" runat="server" Value="" />
            <asp:HiddenField ID="hdExpenseSeq" runat="server" Value="" />
            <asp:HiddenField ID="hdExpenseName" runat="server" Value="" />
            <asp:HiddenField ID="hdSourceSeq" runat="server" Value="" />
            <asp:HiddenField ID="hdSourceName" runat="server" Value="" />
            <asp:HiddenField ID="hdRuleName" runat="server" Value="" />
            <asp:HiddenField ID="hdOperationSeq" runat="server" Value="" />
            <asp:HiddenField ID="hdOperationName" runat="server" Value="" />
            <asp:HiddenField ID="hdOperationExpSeq" runat="server" Value="" />
        </asp:Panel>
        
        <asp:Panel ID="panelAll" runat="server">
            <div class="exampleWrapper">
                <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" CssClass="pageView">
                    <telerik:RadPageView ID="RadPageView1" runat="server">
                        <asp:Panel ID="panel_Detail" runat="server">
                            <div align="left" class="bigModuleFull">
                                <div class="bigModuleBottomFull">
                                    <asp:Panel ID="panelHeaderList" runat="server">
                                        <div class="header-grid">
                                            <asp:Label ID="lblHeaderList" runat="server" Text="เพิ่มรายการใหม่"></asp:Label></div></asp:Panel><asp:Panel 
                                        ID="panelList_Detail" runat="server" CssClass="panelList" ScrollBars="Auto">
                                        <table cellpadding="0" cellspacing="0" width="98%">
                                            <tr><td><div class="font-label">
                                                <table cellpadding="0" cellspacing="0" width="95%">
                                                    <tr><td width="30px"></td>
                                            <td><div class="formList-detail">
                                                <table>
                                            
                                            <tr><td valign="top" width="120px">วันที่รายการ : </td>
                                            <td> 
                                                <telerik:RadMaskedTextBox ID="RadMaskedTextBox1" runat="server" 
                                                    Mask=" ##/##/####" SelectionOnFocus="SelectAll" TextWithLiterals=" //" 
                                                    Width="75px"></telerik:RadMaskedTextBox>
                                                <asp:Label ID="Label18" runat="server" Text="Label"></asp:Label>
                                                </td>
                                                    
                                            <td><BDP:BasicDatePicker ID="BasicDatePicker1" runat="server" Columns="2" 
                                                    DateFormat="d/M/yyyy" DisplayType="Image" 
                                                    OnClientAfterSelectionChanged="AfterChange" ShowCalendarOnTextBoxFocus="true" 
                                                    ShowNoneButton="false" ShowWeekNumbers="true"></BDP:BasicDatePicker>
                                            <td>&#160;<label id="Label3" runat="server"><font color="red">*</font></label> </td></td></tr>
                                                    <tr>
                                                        <td></td><td><asp:RequiredFieldValidator ID="RequiredFieldValidator1" 
                                                            runat="server" ControlToValidate="txtDate" Display="Dynamic" 
                                                            ErrorMessage="* กรุณาระบุวันที่ *" SetFocusOnError="True"></asp:RequiredFieldValidator><asp:CustomValidator 
                                                            ID="CustomValidator1" runat="server" ClientValidationFunction="validateDate" 
                                                            Display="Dynamic" ErrorMessage="กรุณาระบุวันที่ให้ถูกต้อง"></asp:CustomValidator>
                                                    </td></tr></table></div></td></tr>
                                             <tr><td></td>
                                                    <td>
                                                        <div class="formList-detail"><table>
                                                                <tr><td valign="top" width="120px">ประเภทการรับเข้า : </td>
                                                                    <td>
                                                                        <telerik:RadComboBox ID="cbYearType" runat="server" AllowCustomText="true" 
                                                                            CssClass="RadComboBox" DataTextField="Name" DataValueField="Seq" 
                                                                            EmptyMessage=".. พิมพ์ที่นี่เพื่อช่วยค้นหา .." Filter="Contains" 
                                                                            LoadingMessage="กำลังโหลดข้อมูล ..." MarkFirstMatch="false" 
                                                                            OnClientTextChange="onTextChangeGeneral" ShowDropDownOnTextboxClick="true" 
                                                                            Width="150px"></telerik:RadComboBox></td>
                                                                    <td></td></tr></table></div></td></tr>
                                             <tr><td></td>
                                                 <td>
                                                     <div class="formList-detail"><table>
                                                             <tr><td valign="top" width="120px">อ้างอิงใบตรวจรับหมายเลข : </td>
                                                <td><asp:TextBox ID="TextBox3" runat="server" CssClass="TextBox" Width="400px"></asp:TextBox></td>
                                                    <td></td></tr></table></div></td></tr>
                                             <tr><td></td>
                                                 <td>
                                                     <div class="formList-detail"><table>
                                                             <tr><td valign="top" width="120px">เรื่อง : </td>
                                                                 <td>
                                                                     <asp:TextBox ID="txtName" runat="server" CssClass="TextBox" Width="400px"></asp:TextBox>&#160;<label 
                                                                         id="Label2" runat="server"><font color="red">*</font></label> </td></tr>
                                             <tr><td></td>
                                                 <td><asp:RequiredFieldValidator ID="ValtxtName" runat="server" 
                                                         ControlToValidate="txtName" Display="Dynamic" 
                                                         ErrorMessage="* กรุณาระบุเรื่อง *" SetFocusOnError="True"></asp:RequiredFieldValidator></td></tr></table></div></td></tr>
                                             <tr><td></td>
                                                    <td>
                                                        <div class="formList-detail"><table>
                                                                <tr><td valign="top" width="120px">ประเภทพัสดุ : </td>
                                                                    <td>
                                                                        <telerik:RadComboBox ID="RadComboBox1" runat="server" AllowCustomText="true" 
                                                                            CssClass="RadComboBox" DataTextField="Name" DataValueField="Seq" 
                                                                            EmptyMessage=".. พิมพ์ที่นี่เพื่อช่วยค้นหา .." Filter="Contains" 
                                                                            LoadingMessage="กำลังโหลดข้อมูล ..." MarkFirstMatch="false" 
                                                                            OnClientTextChange="onTextChangeGeneral" ShowDropDownOnTextboxClick="true" 
                                                                            Width="150px"></telerik:RadComboBox></td>
                                                        <td>&#160;<label id="Label1" runat="server"><font color="red">*</font></label> </td></tr>
                                             <tr><td></td>
                                                 <td>
                                                     <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                                         ControlToValidate="txtName" Display="Dynamic" 
                                                         ErrorMessage="* กรุณาระบุเรื่อง *" SetFocusOnError="True"></asp:RequiredFieldValidator></td></tr></table></div></td>
                                                        </tr>
                                             <tr><td></td>
                                                 <td>
                                                     <div class="formList-detail"><table>
                                                             <tr><td valign="top" width="120px">วันที่หนังสือรับเข้า : </td>
                                                                 <td>
                                                                     <asp:TextBox ID="TextBox1" runat="server" CssClass="TextBox" Width="150px"></asp:TextBox></td>
                                                     <caption>
                                                         &lt;</caption>
                                                     </tr></table></div></td></tr></table></div></td></tr>
                                             <tr><td></td>
                                                 <td>
                                                     <div class="formList-detail"><table>
                                                             <tr><td valign="top" width="120px">เลขที่อ้างอิงหนังสือรับเข้า : </td>
                                                                 <td>
                                                                     <asp:TextBox ID="TextBox2" runat="server" CssClass="TextBox" Width="150px"></asp:TextBox></td></tr></table></div></td></tr>
                                                    
                                                    <asp:Panel ID="panel1" runat="server">
                                                        <div class="header-grid">
                                                            <asp:Label ID="Label4" runat="server" Text="เพิ่มรายการใหม่"></asp:Label></div></asp:Panel>
                                                        
                                                        
                                                        
                                                        
                                                        
                                                        
                                                        
                                                        
                                                        
                                                        
                                             <tr><td></td>
                                                 <td>
                                                     <div class="formList-detail"><table>
                                                             <tr><td valign="top" width="120px">เหตุผลในการจัดหา : </td>
                                                                 <td>
                                                                     <asp:TextBox ID="txtReason" runat="server" CssClass="TextBox" Height="55px" 
                                                                         TextMode="MultiLine" Width="659px"></asp:TextBox></td></tr></table></div></td></tr>
                                            <tr><td></td>
                                                <td>
                                                    <div class="formList-detail"><table>
                                                            <tr><td valign="top" width="120px">จัดหาเพื่อ : </td>
                                                                <td>
                                                                    <asp:RadioButtonList ID="rbFor" runat="server" RepeatDirection="Horizontal">
                                                                        <asp:ListItem Selected="True" Text="ใช้ภายในหน่วยงาน" Value="1"></asp:ListItem>
                                                                        <asp:ListItem Text="ส่วนรวม" Value="2"></asp:ListItem>
                                                </asp:RadioButtonList></td><td></td></tr></table></div></td></tr></table></div></td></tr></table>
                                        <table cellpadding="0" cellspacing="0" width="98%">
                                            <tr><td>
                                                <table cellpadding="0" cellspacing="0" width="98%">
                                                    <tr>
                                                        <td width="30px"></td><td>
                                                        <table><tr>
                                                            <td width="120px">ต้องการใช้งาน/เสร็จสิ้น : </td>
                                                            <td>
                                                                <asp:RadioButton ID="rdbDuration" runat="server" Checked="true" 
                                                                    GroupName="During" Text="ภายใน" /></td>
                                                            <td width="600px">
                                                                <asp:Panel ID="panelDuration" runat="server">
                                                                    <telerik:RadNumericTextBox ID="txtDurationReq" runat="server" 
                                                                    NumberFormat-DecimalDigits="0" Skin="Outlook" Width="50px"></telerik:RadNumericTextBox>
                                                                    <telerik:RadComboBox ID="cbDurationType" runat="server" 
                                                                    AllowCustomText="false" CssClass="RadComboBox" DataTextField="Name" 
                                                                    DataValueField="Seq" Filter="Contains" MarkFirstMatch="false" 
                                                                    OnClientTextChange="onTextChangeGeneral" ShowDropDownOnTextboxClick="true" 
                                                                    Width="80px"></telerik:RadComboBox>&#160;นับจาก 
                                                                    <telerik:RadComboBox ID="cbDurationCount" runat="server" 
                                                                    AllowCustomText="false" CssClass="RadComboBox" DataTextField="Name" 
                                                                    DataValueField="Seq" Filter="Contains" MarkFirstMatch="false" 
                                                                    OnClientTextChange="onTextChangeGeneral" ShowDropDownOnTextboxClick="true" 
                                                                    Width="150px"></telerik:RadComboBox></asp:Panel></td></tr></table></td></tr></table></td></tr></table>
                                        <table cellpadding="0" cellspacing="0" width="98%">
                                            <tr><td>
                                                <table cellpadding="0" cellspacing="0" width="98%">
                                                    <tr>
                                                        <td width="30px"></td><td>
                                                        <div class="formList-detail"><table>
                                                                <tr><td width="120px"></td>
                                                                    <td>
                                                                        <asp:RadioButton ID="rdbDate" runat="server" GroupName="During" 
                                                                            Text="ภายในวันที่" /></td>
                                                                    <td>
                                                                        <asp:Panel ID="panelDateReq" runat="server">
                                                                            <telerik:RadMaskedTextBox ID="txtDateReq" runat="server" Mask=" ##/##/####" 
                                                                            SelectionOnFocus="SelectAll" TextWithLiterals=" //" Width="75px"></telerik:RadMaskedTextBox></asp:Panel></td>
                                                                    <td width="600px"><asp:Panel ID="panelDateReqPick" runat="server"><BDP:BasicDatePicker 
                                                                            ID="BasicDatePicker2" runat="server" Columns="2" DateFormat="d/M/yyyy" 
                                                                            DisplayType="Image" OnClientAfterSelectionChanged="AfterChange2" 
                                                                            ShowCalendarOnTextBoxFocus="true" ShowNoneButton="false" ShowWeekNumbers="true"></BDP:BasicDatePicker></asp:Panel></td></tr>
                                                                <tr><td></td>
                                                                    <td colspan="2">
                                                                        <asp:CustomValidator ID="ValDateReq" runat="server" 
                                                                            ClientValidationFunction="validateDate2" Display="Dynamic" 
                                                                            ErrorMessage="กรุณาระบุวันที่ให้ถูกต้อง"></asp:CustomValidator></td></tr></table></div></td></tr></table></td></tr></table></asp:Panel></div></div>
                            <asp:Panel ID="panelTool_Detail" runat="server">
                                <div class="bigModuleFull">
                                    <div class="bigModuleBottomFull"><table width="100%"><tr class="command-list">
                                                <td align="right" class="command-item" style="border: none">
                                         </td></tr></table></div></div></asp:Panel></asp:Panel>
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="RadPageView2" runat="server">
                        <asp:Panel ID="panel_Item" runat="server">
                            <table cellpadding="0" cellspacing="0" style="width: 98%;"><tr valign="top">
                                    <td valign="top">
                                        <asp:Panel ID="panelCommand_Item" runat="server">
                                            <div class="bigModuleFull">
                                                <div class="bigModuleBottomFull">
                                                    <table>
                                                        <tr class="command-list">
                                                            <td class="command-item" style="border: none">
                                                               </td>
                                                            <td class="command-item"></td>
                                                            <td class="command-item">
                                                               </td>
                                                            <td class="command-item">
                                                             </td></tr></table></div></div></asp:Panel></td></tr>
                                <tr><td>
                                    <asp:Panel ID="panelData_Item" runat="server">
                                        <div class="bigModuleFull">
                                            <div class="bigModuleBottomFull">
                                                <asp:Panel ID="panelHeaderList2" runat="server">
                                                    <div class="header-grid">
                                                        <asp:Label ID="Label5" runat="server" Text="ข้อมูลรายการพัสดุ"></asp:Label></div></asp:Panel>
                                                <asp:Panel ID="panelList_Item" runat="server" CssClass="panelList" 
                                                    ScrollBars="Auto" Visible="false">
                                                    <asp:Panel ID="panelBgmExpPlan" runat="server">
                                                        <table width="98%">
                                                            <tr>
                                                                <td valign="top"><table cellpadding="0" cellspacing="0" width="98%"><tr>
                                                                            <td width="30px"></td><td>
                                                                            <div class="formList-detail"><table>
                                                                                    <tr>
                                                                                        <td valign="top" width="150px">แผนการใช้จ่ายงบประมาณ : </td>
                                                                                        <td>
                                                                                            <telerik:RadComboBox ID="cbBgmExpProject" Runat="server" AllowCustomText="true" 
                                                                                                CssClass="RadComboBox" 
                                                                                                EmptyMessage=".. เลือกรายจ่ายจากแผนการใช้จ่ายงบประมาณ .." Height="300px" 
                                                                                                LoadingMessage="กำลังโหลดข้อมูล ..." MarkFirstMatch="false" 
                                                                                                OnClientDropDownClosing="OnClientDropDownClosingHandler" 
                                                                                                OnClientTextChange="onTextChange" ShowDropDownOnTextboxClick="true" 
                                                                                                Skin="Outlook" Width="750px"><ItemTemplate><div 
                                                                                                    onclick="StopPropagation(event)"><telerik:RadTreeView 
                                                                                                    ID="TreeViewBgmExpProject" runat="server" CssClass="TreeView" DataFieldID="Id" 
                                                                                                    DataFieldParentID="Parent_id" DataTextField="Name" DataValueField="Id" 
                                                                                                    MultipleSelect="false" OnClientNodeClicking="OnClientNodeClickingHandler" 
                                                                                                    Skin="Outlook"><DataBindings><telerik:RadTreeNodeBinding 
                                                                                                        CategoryField="Category" />
                                                            </DataBindings>
                                                            </telerik:RadTreeView></div>
                                                        </ItemTemplate>
                                                        <Items>
                                                            <telerik:RadComboBoxItem />
                                                        </Items>
                                                        </telerik:RadComboBox><label id="Label7" runat="server"><font color="red">*</font></label> </td></tr>
                                                                                    <tr><td></td>
                                                                                        <td>
                                                                                            <asp:Panel ID="panelValcbBgmExpPlan" runat="server"></asp:Panel></td></tr></table></div></td></tr></table></td></tr></table></asp:Panel><asp:UpdatePanel 
                                                    ID="udPanelItem" runat="server" UpdateMode="Conditional" Visible="false"><ContentTemplate>
                                                            <table width="98%"><tr>
                                                                <td valign="top">
                                                                    <table cellpadding="0" cellspacing="0" width="98%">
                                                                        <tr><td width="30px"></td>
                                                                            <td colspan="2">
                                                                                <fieldset><legend>รายละเอียดด้านงบประมาณ</legend>
                                                                                    <table cellpadding="0" cellspacing="0" width="100%">
                                                                                        <tr><td width="50%">
                                                                                            <div class="formList-detail"><table>
                                                                                                <tr>
                                                                                                    <td valign="top" width="150px">วงเงินตามแผนงบประมาณ : </td>
                                                                                                    <td>
                                                                                                        <asp:Label ID="lblAllBudget" runat="server" Text="5,556,345"></asp:Label>&#160;บาท </td></tr></table></div></td>
                                                                                            <td width="15px"></td><td>
                                                                                            <div class="formList-detail"><table>
                                                                                                    <tr>
                                                                                                        <td valign="top" width="150px">วงเงินคงเหลือ : </td>
                                                                                                        <td>
                                                                                                            <asp:Label ID="lblRemainBudget" runat="server" Text="3,244,123"></asp:Label>&#160;บาท </td></tr></table></div></td></tr>
                                                                                        <tr><td>
                                                                                            <div class="formList-detail"><table>
                                                                                                <tr>
                                                                                                    <td valign="top" width="150px">วงเงินค่าจ้างจากรายการอื่น : </td>
                                                                                                    <td>
                                                                                                        <asp:Label ID="lblTranBudget" runat="server" CssClass="Label" Text="0"></asp:Label>&#160;บาท </td></tr></table></div></td>
                                                                                            <td width="15px"></td><td>
                                                                                            <div class="formList-detail"><table>
                                                                                                    <tr>
                                                                                                        <td valign="top" width="150px">วงเงินคงเหลือรวมรายการค้าง : </td>
                                                                                                        <td>
                                                                                                            <asp:Label ID="lblRemainTranBudget" runat="server" Text="0"></asp:Label>&#160;บาท </td></tr></table></div></td></tr></table></fieldset> </td></tr>
                                                                        <tr>
                                                                            <td height="8px"></td></tr>
                                                                        <tr>
                                                                            <td></td><td>
                                                                            <fieldset><legend>รายการพัสดุ</legend>
                                                                                <table width="100%"><tr>
                                                                                    <td>
                                                                                        <fieldset><table>
                                                                                            <tr>
                                                                                                <td class="command-item" style="border: none">
                                                                                                  </td>
                                                                                                <td class="command-item">
                                                                                                   </td></tr></table></fieldset> 
                                                                                        <telerik:RadToolTip ID="TipAddItem" runat="server" Animation="Fade" 
                                                                                            Height="200px" HideEvent="FromCode" IsClientID="false" ManualClose="true" 
                                                                                            Modal="true" Position="MiddleRight" ShowEvent="OnClick" Skin="Telerik" 
                                                                                            TargetControlID="btnAddItem" Width="400px"><table width="100%"><tr 
                                                                                                class="table-outlook-header"><td></td></tr><tr><td align="center"><br /></td></tr></table></telerik:RadToolTip></td>
                                                                                        <tr><td>
                                                                                            <telerik:RadToolTipManager ID="TipEachItem" runat="server" Animation="None" 
                                                                                                Height="450px" HideEvent="ManualClose" OnAjaxUpdate="OnAjaxUpdate" 
                                                                                                Position="MiddleRight" ShowEvent="OnClick" Skin="Telerik" Width="450px"></telerik:RadToolTipManager></td></tr>
                                                                                        <tr><td>
                                                                                            <telerik:RadGrid ID="Grid_SubItem" runat="server" 
                                                                                                AllowFilteringByColumn="false" AllowMultiRowSelection="true" 
                                                                                                AllowPaging="false" AllowSorting="True" AutoGenerateColumns="False" 
                                                                                                CssClass="RadGrid" EnableAJAX="True" GridLines="None" 
                                                                                                OnItemCommand="Grid_SubItem_ItemCommand" 
                                                                                                OnItemDataBound="Grid_SubItem_ItemDataBound" ShowFooter="true" 
                                                                                                ShowStatusBar="false" Skin="Vista" Width="100%"><mastertableview 
                                                                                                allowmulticolumnsorting="true" grouploadmode="Client" 
                                                                                                nomasterrecordstext="&lt;div align=center&gt;&lt;font color=gray&gt;&lt;i&gt;ไม่มีข้อมูล&lt;/i&gt;&lt;/font&gt;&lt;/div&gt;" 
                                                                                                width="100%"><PagerStyle Mode="NextPrevNumericAndAdvanced" /><Columns><telerik:GridClientSelectColumn 
                                                                                                    UniqueName="ClientSelectColumn"><HeaderStyle HorizontalAlign="Center" 
                                                                                                    Width="10px" /><ItemStyle HorizontalAlign="Center" /></telerik:GridClientSelectColumn><telerik:GridTemplateColumn 
                                                                                                    AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" DataField="Name" 
                                                                                                    FilterControlWidth="100%" HeaderText="ชื่อ" ShowFilterIcon="false" 
                                                                                                    SortExpression="Name" UniqueName="Name"><HeaderStyle 
                                                                                                    HorizontalAlign="Center" Width="200px" /><ItemStyle 
                                                                                                    HorizontalAlign="Left" /><ItemTemplate><asp:HyperLink ID="lkName" 
                                                                                                        runat="server" NavigateUrl="#" Text='<%# Eval("Name") %>'></asp:HyperLink>
                                                                </ItemTemplate>
                                                                </telerik:GridTemplateColumn><telerik:GridTemplateColumn HeaderText="รายละเอียด" UniqueName="Descr"><ItemTemplate><asp:TextBox 
                                                                                                        ID="txtDescr" runat="server" CssClass="TextBox" Skin="Outlook" Width="98%"></asp:TextBox>
                                                                </ItemTemplate>
                                                                <HeaderStyle HorizontalAlign="Center" />
                                                                <ItemStyle HorizontalAlign="Left" />
                                                                </telerik:GridTemplateColumn><telerik:GridTemplateColumn HeaderText="จำนวน" UniqueName="Qty"><ItemTemplate><telerik:RadNumericTextBox 
                                                                                                        ID="txtQty" runat="server" NumberFormat-DecimalDigits="0" Skin="Outlook" 
                                                                                                        Text='<%# Eval("Qty") %>' Width="50px"></telerik:RadNumericTextBox>
                                                                </ItemTemplate>
                                                                <HeaderStyle HorizontalAlign="Center" Width="50px" />
                                                                <ItemStyle HorizontalAlign="Left" />
                                                                </telerik:GridTemplateColumn><telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                                                                                    CurrentFilterFunction="Contains" DataField="InfoItem.InfoUnit.Name" 
                                                                                                    FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" 
                                                                                                    HeaderText="หน่วย" ShowFilterIcon="false" UniqueName="InfoItem.InfoUnit.Name"><HeaderStyle 
                                                                                                    HorizontalAlign="Center" Width="30px" /><ItemStyle HorizontalAlign="Left" /></telerik:GridBoundColumn><telerik:GridTemplateColumn 
                                                                                                    HeaderText="ราคาประมาณการ&lt;br&gt;ต่อหน่วย(บาท)" UniqueName="Price"><ItemTemplate><telerik:RadNumericTextBox 
                                                                                                        ID="txtPrice" runat="server" Skin="Outlook" Text='<%# Eval("Price") %>' 
                                                                                                        Width="100px"></telerik:RadNumericTextBox>
                                                                </ItemTemplate>
                                                                <HeaderStyle HorizontalAlign="Center" Width="100px" />
                                                                <ItemStyle HorizontalAlign="Left" />
                                                                <FooterTemplate>
                                                                    <telerik:RadNumericTextBox ID="txtTotalPrice" runat="server" ReadOnly="true" 
                                                                        Skin="Outlook" Width="100px"><clientevents onload="Load" /></telerik:RadNumericTextBox>
                                                                </FooterTemplate>
                                                                </telerik:GridTemplateColumn><telerik:GridBoundColumn DataField="InfoItem.Seq" 
                                                                                                    HeaderStyle-HorizontalAlign="Center" UniqueName="InfoItem.Seq" Visible="false"><HeaderStyle 
                                                                                                    HorizontalAlign="Center" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                                                                    DataField="InfoExpense.Seq" HeaderStyle-HorizontalAlign="Center" 
                                                                                                    UniqueName="InfoExpense.Seq" Visible="false"><HeaderStyle 
                                                                                                    HorizontalAlign="Center" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                                                                    DataField="InfoExpense.Name" HeaderStyle-HorizontalAlign="Center" 
                                                                                                    UniqueName="InfoExpense.Name" Visible="false"><HeaderStyle 
                                                                                                    HorizontalAlign="Center" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                                                                    DataField="InfoSource.Seq" HeaderStyle-HorizontalAlign="Center" 
                                                                                                    UniqueName="InfoSource.Seq" Visible="false"><HeaderStyle 
                                                                                                    HorizontalAlign="Center" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                                                                    DataField="InfoSource.Name" HeaderStyle-HorizontalAlign="Center" 
                                                                                                    UniqueName="InfoSource.Name" Visible="false"><HeaderStyle 
                                                                                                    HorizontalAlign="Center" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                                                                    DataField="InfoProOperExp.InfoProOper.Seq" HeaderStyle-HorizontalAlign="Center" 
                                                                                                    UniqueName="InfoProOperExp.InfoProOper.Seq" Visible="false"><HeaderStyle 
                                                                                                    HorizontalAlign="Center" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                                                                    DataField="InfoProOperExp.InfoProOper.Name" 
                                                                                                    HeaderStyle-HorizontalAlign="Center" 
                                                                                                    UniqueName="InfoProOperExp.InfoProOper.Name" Visible="false"><HeaderStyle 
                                                                                                    HorizontalAlign="Center" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                                                                    DataField="InfoRule.Seq" HeaderStyle-HorizontalAlign="Center" 
                                                                                                    UniqueName="InfoRule.Seq" Visible="false"><HeaderStyle 
                                                                                                    HorizontalAlign="Center" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                                                                    DataField="InfoRule.Name" HeaderStyle-HorizontalAlign="Center" 
                                                                                                    UniqueName="InfoRule.Name" Visible="false"><HeaderStyle 
                                                                                                    HorizontalAlign="Center" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                                                                    DataField="InfoProOperExp.seq" HeaderStyle-HorizontalAlign="Center" 
                                                                                                    UniqueName="InfoProOperExp.seq" Visible="false"><HeaderStyle 
                                                                                                    HorizontalAlign="Center" /></telerik:GridBoundColumn>
                                                            </Columns>
                                                            </mastertableview>
                                                            <clientsettings enablerowhoverstyle="true">
                                                            <selecting allowrowselect="True" />
                                                            </clientsettings>
                                                            </telerik:RadGrid></td></tr></tr></table></fieldset> </td></tr></table></td></tr></table>
                                        </ContentTemplate>
                                        </asp:UpdatePanel></asp:Panel>
                                                <asp:Panel ID="panelGrid_Item" runat="server" CssClass="panelGrid" 
                                                    ScrollBars="Auto"><div align="Left">
                                                        <telerik:RadGrid ID="Grid_Item" runat="server" 
                                                        AllowFilteringByColumn="true" AllowMultiRowSelection="True" AllowPaging="false" 
                                                        AllowSorting="True" AutoGenerateColumns="False" CssClass="RadGrid" 
                                                        EnableAJAX="True" GridLines="None" OnItemCommand="Grid_Item_ItemCommand" 
                                                        OnItemDataBound="Grid_Item_ItemDataBound" ShowFooter="true" 
                                                        ShowStatusBar="false" Skin="Outlook" Width="95%"><mastertableview 
                                                        allowmulticolumnsorting="true" grouploadmode="Client" 
                                                        nomasterrecordstext="&lt;div align=center&gt;&lt;font color=gray&gt;&lt;i&gt;ไม่มีข้อมูล&lt;/i&gt;&lt;/font&gt;&lt;/div&gt;" 
                                                        width="100%"><PagerStyle Mode="NextPrevNumericAndAdvanced" /><Columns><telerik:GridClientSelectColumn 
                                                            UniqueName="ClientSelectColumn"><HeaderStyle HorizontalAlign="Center" 
                                                            Width="10px" /><ItemStyle HorizontalAlign="Center" /></telerik:GridClientSelectColumn><telerik:GridBoundColumn 
                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" 
                                                            DataField="InfoSource.Name" FilterControlWidth="100%" Groupable="true" 
                                                            GroupByExpression="InfoSource.Name Group By InfoSource.Seq" 
                                                            HeaderText="แหล่งเงิน" ShowFilterIcon="false" UniqueName="InfoSource.Name" 
                                                            Visible="false"><HeaderStyle HorizontalAlign="Center" Width="150px" /><ItemStyle 
                                                            HorizontalAlign="Left" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" 
                                                            DataField="InfoExpense.Name" FilterControlWidth="100%" Groupable="true" 
                                                            GroupByExpression="InfoExpense.Name Group By InfoExpense.Seq" 
                                                            HeaderText="รายจ่าย" ShowFilterIcon="false" UniqueName="InfoExpense.Name" 
                                                            Visible="false"><HeaderStyle HorizontalAlign="Center" Width="150px" /><ItemStyle 
                                                            HorizontalAlign="Left" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" 
                                                            DataField="InfoRule.Name" FilterControlWidth="100%" Groupable="true" 
                                                            GroupByExpression="InfoRule.Name Group By InfoRule.Seq" 
                                                            HeaderText="ระเบียบการจัดหา" ShowFilterIcon="false" UniqueName="InfoRule.Name" 
                                                            Visible="false"><HeaderStyle HorizontalAlign="Center" Width="150px" /><ItemStyle 
                                                            HorizontalAlign="Left" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" 
                                                            DataField="InfoProOperExp.InfoProOper.Name" FilterControlWidth="100%" 
                                                            Groupable="true" 
                                                            GroupByExpression="InfoProOperExp.InfoProOper.Name Group By InfoProOperExp.InfoProOper.Seq" 
                                                            HeaderText="อนุมัติหลักการ" ShowFilterIcon="false" 
                                                            UniqueName="InfoProOperExp.InfoProOper.Name" Visible="false"><HeaderStyle 
                                                            HorizontalAlign="Center" Width="150px" /><ItemStyle 
                                                            HorizontalAlign="Left" /></telerik:GridBoundColumn>
                                                    <telerik:GridTemplateColumn AutoPostBackOnFilter="true" 
                                                            CurrentFilterFunction="Contains" DataField="Name" FilterControlWidth="100%" 
                                                            HeaderText="รายการ" ShowFilterIcon="false" SortExpression="Name" 
                                                            UniqueName="Name"><HeaderStyle HorizontalAlign="Center" Width="250px" /><ItemStyle 
                                                            HorizontalAlign="Left" /><ItemTemplate><asp:HyperLink ID="lkName" 
                                                                runat="server" NavigateUrl="#" Text='<%# Eval("Name") %>'></asp:HyperLink>
                                                </ItemTemplate>
                                                </telerik:GridTemplateColumn><telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                                            CurrentFilterFunction="Contains" DataField="Descr" FilterControlWidth="100%" 
                                                            HeaderStyle-HorizontalAlign="Center" HeaderText="รายละเอียด" 
                                                            ShowFilterIcon="false" UniqueName="Descr"><HeaderStyle 
                                                            HorizontalAlign="Center" /><ItemStyle HorizontalAlign="Left" /><FooterStyle 
                                                            HorizontalAlign="Right" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" DataField="Qty" 
                                                            DataFormatString="{0:N0}" FilterControlWidth="100%" 
                                                            HeaderStyle-HorizontalAlign="Center" HeaderText="จำนวน" ShowFilterIcon="false" 
                                                            UniqueName="Qty"><HeaderStyle HorizontalAlign="Center" Width="50px" /><ItemStyle 
                                                            HorizontalAlign="Left" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" 
                                                            DataField="InfoItem.InfoUnit.Name" FilterControlWidth="100%" 
                                                            HeaderStyle-HorizontalAlign="Center" HeaderText="หน่วย" ShowFilterIcon="false" 
                                                            UniqueName="InfoItem.InfoUnit.Name"><HeaderStyle HorizontalAlign="Center" 
                                                            Width="30px" /><ItemStyle HorizontalAlign="Left" /></telerik:GridBoundColumn><telerik:GridTemplateColumn 
                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" DataField="Price" 
                                                            FilterControlWidth="100%" HeaderText="ราคาประมาณการ&lt;br&gt;ต่อหน่วย(บาท)" 
                                                            ShowFilterIcon="false" UniqueName="Price"><ItemTemplate><asp:Label 
                                                                ID="lblPrice" runat="server" Text='<%# Eval("Price", "{0:N2}") %>'> </asp:Label>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="Center" Width="120px" />
                                                <ItemStyle HorizontalAlign="Right" />
                                                <FooterStyle HorizontalAlign="Right" />
                                                <FooterTemplate>
                                                    <asp:Label ID="lblTotalPrice" runat="server" CssClass="font-label" 
                                                        Font-Bold="true" Width="100px"> </asp:Label>
                                                </FooterTemplate>
                                                </telerik:GridTemplateColumn><telerik:GridBoundColumn DataField="InfoItem.Seq" 
                                                            HeaderStyle-HorizontalAlign="Center" UniqueName="InfoItem.Seq" Visible="false"><HeaderStyle 
                                                            HorizontalAlign="Center" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                            DataField="InfoExpense.Seq" HeaderStyle-HorizontalAlign="Center" 
                                                            UniqueName="InfoExpense.Seq" Visible="false"><HeaderStyle 
                                                            HorizontalAlign="Center" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                            DataField="InfoSource.Seq" HeaderStyle-HorizontalAlign="Center" 
                                                            UniqueName="InfoSource.Seq" Visible="false"><HeaderStyle 
                                                            HorizontalAlign="Center" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                            DataField="InfoRule.Seq" HeaderStyle-HorizontalAlign="Center" 
                                                            UniqueName="InfoRule.Seq" Visible="false"><HeaderStyle 
                                                            HorizontalAlign="Center" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                            DataField="InfoProOperExp.InfoProOper.Seq" HeaderStyle-HorizontalAlign="Center" 
                                                            UniqueName="InfoProOperExp.InfoProOper.Seq" Visible="false"><HeaderStyle 
                                                            HorizontalAlign="Center" /></telerik:GridBoundColumn>
                                            </Columns>
                                            </mastertableview>
                                            <clientsettings enablerowhoverstyle="true">
                                            <selecting allowrowselect="True" />
                                            </clientsettings>
                                            </telerik:RadGrid>
                                                        <telerik:RadGrid ID="Grid_SubCommittee" runat="server" 
                                                        AllowFilteringByColumn="false" AllowMultiRowSelection="true" 
                                                        AllowPaging="false" AllowSorting="True" AutoGenerateColumns="False" 
                                                        CssClass="RadGrid" EnableAJAX="True" GridLines="None" 
                                                        OnItemDataBound="Grid_SubCommittee_ItemDataBound" ShowHeader="false" 
                                                        ShowStatusBar="false" Skin="Hay" Visible="false" Width="100%"><mastertableview 
                                                        allowmulticolumnsorting="true" grouploadmode="Client" 
                                                        nomasterrecordstext="&lt;div align=center&gt;&lt;font color=gray&gt;&lt;i&gt;ไม่มีข้อมูล&lt;/i&gt;&lt;/font&gt;&lt;/div&gt;" 
                                                        width="100%"><PagerStyle Mode="NextPrevNumericAndAdvanced" />
                                                    <Columns>
                                                        <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                                            CurrentFilterFunction="Contains" DataField="InfoFunction.Name" 
                                                            FilterControlWidth="100%" Groupable="true" 
                                                            GroupByExpression="InfoFunction.Name Group By InfoFunction.Seq" 
                                                            HeaderText="หน้าที่" ShowFilterIcon="false" UniqueName="InfoFunction.Name" 
                                                            Visible="false">
                                                            <HeaderStyle HorizontalAlign="Center" Width="150px" />
                                                            <ItemStyle HorizontalAlign="Left" />
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                                            CurrentFilterFunction="Contains" DataField="Ref_no" FilterControlWidth="100%" 
                                                            Groupable="true" GroupByExpression="Ref_no Group By Ref_no" HeaderText="ชุดที่" 
                                                            ShowFilterIcon="false" UniqueName="Ref_no" Visible="false">
                                                            <HeaderStyle HorizontalAlign="Center" Width="50px" />
                                                            <ItemStyle HorizontalAlign="Left" />
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                                            CurrentFilterFunction="Contains" DataField="InfoPosition.Name" 
                                                            FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" 
                                                            HeaderText="ตำแหน่ง" ShowFilterIcon="false" UniqueName="InfoPosition.Name">
                                                            <HeaderStyle HorizontalAlign="Center" Width="70px" />
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridTemplateColumn HeaderText="ประเภทบุคลากร" UniqueName="Com_type">
                                                            <ItemTemplate>
                                                                <asp:RadioButtonList ID="rblCommitteeType" runat="server" 
                                                                    RepeatDirection="Vertical" RepeatLayout="Flow">
                                                                    <asp:ListItem Selected="True" Text="บุคลากรภายใน" Value="1">
                                                                    </asp:ListItem>
                                                                    <asp:ListItem Text="บุคลากรภายนอก" Value="2">
                                                                    </asp:ListItem>
                                                                </asp:RadioButtonList>
                                                            </ItemTemplate>
                                                            <HeaderStyle HorizontalAlign="Center" Width="120px" />
                                                            <ItemStyle HorizontalAlign="Left" />
                                                        </telerik:GridTemplateColumn>
                                                        <telerik:GridTemplateColumn HeaderText="รายชื่อบุคลากรภายใน" 
                                                            UniqueName="Internal">
                                                            <ItemTemplate>
                                                                <asp:Panel ID="panelGridCommitteeInternalName" runat="server">
                                                                    <telerik:RadComboBox ID="cbGridInternalName" runat="server" 
                                                                    AllowCustomText="true" EmptyMessage=".. เลือกหรือพิมพ์ชื่อบุคลากรภายใน .." 
                                                                    EnableLoadOnDemand="true" EnableVirtualScrolling="true" Height="230px" 
                                                                    HighlightTemplatedItems="true" MarkFirstMatch="false" 
                                                                    OnClientTextChange="onTextChangeGeneral" 
                                                                    OnItemsRequested="cbGridInternalName_ItemsRequested" 
                                                                    ShowDropDownOnTextboxClick="true" ShowMoreResultsBox="true" Width="440px">
                                                                        <HeaderTemplate>
                                                                            <table cellpadding="0" cellspacing="0" class="font-label">
                                                                                <tr>
                                                                                    <td align="center" width="100px">
                                                                                        <b>หน่วยงาน</b></td><td align="center" width="100px"><b>ชื่อ-สกุล</b></td><td 
                                                                                        align="center" width="100px"><b>ตำแหน่ง</b></td><td align="center" 
                                                                                        width="100px"><b>ระดับ</b></td></tr></table>
                                                                        </HeaderTemplate>
                                                                        <ItemTemplate>
                                                                            <asp:Table ID="tableGridInternalName" runat="server" CellPadding="0" 
                                                                                CellSpacing="0" CssClass="font-label">
                                                                            </asp:Table>
                                                                        </ItemTemplate>
                                                                    </telerik:RadComboBox>
                                                                </asp:Panel>
                                                            </ItemTemplate>
                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle HorizontalAlign="Left" />
                                                        </telerik:GridTemplateColumn>
                                                        <telerik:GridTemplateColumn HeaderText="รายชื่อ/รายละเอียดบุคลากรภายนอก" 
                                                            UniqueName="External">
                                                            <ItemTemplate>
                                                                <asp:Panel ID="panelGridCommitteeExternalName" runat="server">
                                                                    <telerik:RadTextBox ID="txtGridExternalName" runat="server" 
                                                                    CssClass="TextBox" EmptyMessage=".. พิมพ์ชื่อกรรมการ .." Skin="Outlook" 
                                                                    Width="176px">
                                                                    </telerik:RadTextBox>
                                                                </asp:Panel>
                                                                <asp:Panel ID="panelGridCommitteeExternalDescr" runat="server">
                                                                    <telerik:RadTextBox ID="txtGridExternalDescr" runat="server" 
                                                                    CssClass="TextBox" EmptyMessage=".. พิมพ์รายละเอียดกรรมการ .." Skin="Outlook" 
                                                                    Width="176px">
                                                                    </telerik:RadTextBox>
                                                                </asp:Panel>
                                                            </ItemTemplate>
                                                            <HeaderStyle HorizontalAlign="Center" Width="200px" />
                                                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
                                                        </telerik:GridTemplateColumn>
                                                        <telerik:GridBoundColumn DataField="InfoFunction.Seq" 
                                                            HeaderStyle-HorizontalAlign="Center" UniqueName="InfoFunction.Seq" 
                                                            Visible="false">
                                                            <HeaderStyle HorizontalAlign="Center" />
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridBoundColumn DataField="InfoPosition.Seq" 
                                                            HeaderStyle-HorizontalAlign="Center" UniqueName="InfoPosition.Seq" 
                                                            Visible="false">
                                                            <HeaderStyle HorizontalAlign="Center" />
                                                        </telerik:GridBoundColumn>
                                                    </Columns>
                                                </mastertableview>
                                                <clientsettings allowgroupexpandcollapse="true" enablerowhoverstyle="true">
                                                    <selecting allowrowselect="True" />
                                                </clientsettings>
                                            </telerik:RadGrid>
                                            <telerik:RadToolTipManager ID="TipItemDetail" runat="server" Animation="None" 
                                                        Height="450px" HideEvent="ManualClose" OnAjaxUpdate="OnAjaxUpdate2" 
                                                        Position="MiddleRight" ShowEvent="OnClick" Skin="Telerik" Width="456px"></telerik:RadToolTipManager>
                                        </div>
                                        <br />
                                    </asp:Panel></div></div></asp:Panel></td></tr></table></asp:Panel>
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="RadPageView3" runat="server">
                        <asp:Panel ID="panel_Committee" runat="server">
                            <table cellpadding="0" cellspacing="0" style="width: 98%;"><tr valign="top">
                                    <td valign="top">
                                        <asp:Panel ID="panelCommand_Committee" runat="server">
                                            <div class="bigModuleFull">
                                                <div class="bigModuleBottomFull">
                                                    <table>
                                                        <tr class="command-list">
                                                            <td class="command-item" style="border: none">
                                                                <asp:LinkButton ID="ShowGrid_Committee" runat="server" CausesValidation="false" 
                                                                    CssClass="LinkButton" OnClick="ShowGrid_Committee_Click"> 
                                                                <img alt="" src="../Image/Grid/table.gif" 
                                                                    style="border:0px;vertical-align:middle;" /> &#160;&#160;แสดงข้อมูลทั้งหมด </asp:LinkButton></td>
                                                            <td class="command-item">
                                                                <asp:LinkButton ID="AddNew_Committee" runat="server" CausesValidation="false" 
                                                                    CssClass="LinkButton" OnClick="AddNew_Committee_Click"> 
                                                                <img alt="" src="../Image/Grid/AddRecord.gif" 
                                                                    style="border:0px;vertical-align:middle;" /> &#160;&#160;เพิ่มข้อมูลใหม่ </asp:LinkButton></td>
                                                            <td class="command-item">
                                                                <asp:LinkButton ID="AddNewSave_Committee" runat="server" CssClass="LinkButton" 
                                                                    OnClick="AddNewSave_Committee_Click" Visible="false"> 
                                                                <img alt="" src="../Image/Grid/Cmd_Save.gif" 
                                                                    style="border:0px;vertical-align:middle;" /> &#160;&#160;บันทึกข้อมูล </asp:LinkButton></td>
                                                            <td class="command-item">
                                                                <asp:LinkButton ID="Delete_Committee" runat="server" CssClass="LinkButton" 
                                                                    OnClick="Delete_Committee_Click" 
                                                                    OnClientClick="javascript:return confirm('ยืนยันการลบข้อมูลที่เลือก')"> 
                                                                <img alt="" src="../Image/Grid/Delete.gif" 
                                                                    style="border:0px;vertical-align:middle;" /> &#160;&#160;ลบข้อมูล </asp:LinkButton></td></tr></table></div></div></asp:Panel></td></tr>
                                <tr><td>
                                    <asp:Panel ID="panelData_Committee" runat="server">
                                        <div class="bigModuleFull">
                                            <div class="bigModuleBottomFull">
                                                <asp:Panel ID="panelHeaderList3" runat="server">
                                                    <div class="header-grid">
                                                        <asp:Label ID="Label6" runat="server" 
                                                            Text="ข้อมูลรายชื่อคณะกรรมการ"></asp:Label></div></asp:Panel>
                                                <asp:Panel ID="panelList_Committee" runat="server" CssClass="panelList" 
                                                    ScrollBars="Auto" Visible="false"><table width="98%">
                                                        <tr><td>
                                                            <table cellpadding="0" cellspacing="0" width="98%">
                                                                <tr><td width="30px"></td>
                                                                    <td>
                                                                        <div class="formList-detail"><table>
                                                                            <tr>
                                                                                <td valign="top" width="150px">วิธีการเพิ่มข้อมูล : </td>
                                                                                <td>
                                                                                    <asp:RadioButtonList ID="rblAddCommittee" runat="server" AutoPostBack="true" 
                                                                                        CausesValidation="false" 
                                                                                        OnSelectedIndexChanged="rblAddCommittee_SelectedIndexChanged" 
                                                                                        RepeatDirection="Horizontal" RepeatLayout="Flow">
                                                                                        <asp:ListItem Text="ปกติ" Value="Wizard" ></asp:ListItem><label id="Label8" runat="server"><font color="red">*</font></label>
                                                                                        <asp:ListItem Text="ตัวช่วย" Value="Normal"></asp:ListItem>
                                                    </asp:RadioButtonList>&#160; </td></tr>
                                                                            <tr><td></td>
                                                                                <td></td></tr></table></div></td></tr></table></td></tr></table>
                                                    <asp:Panel ID="panelAddCommittee_Normal" runat="server" Visible="false">
                                                        <table width="98%"><tr>
                                                            <td>
                                                                <table cellpadding="0" cellspacing="0" width="98%">
                                                                    <tr>
                                                                        <td width="30px"></td><td>
                                                                        <div class="formList-detail"><table>
                                                                                <tr>
                                                                                    <td valign="top" width="150px">ชุดที่ : </td>
                                                                                    <td>
                                                                                        <telerik:RadNumericTextBox ID="txtCommitteeRefno" runat="server" 
                                                                                            NumberFormat-DecimalDigits="0" Skin="Outlook" Width="50px"></telerik:RadNumericTextBox>&#160;<label 
                                                                                            id="Label12" runat="server"><font color="red">*</font></label> </td></tr>
                                                                                <tr><td>
                                                        <asp:TextBox ID="txtDate" runat="server"></asp:TextBox>
                                                        </td><td>
                                                                                        <asp:Panel ID="panelValtxtCommitteeRefno" runat="server"></asp:Panel></td></tr></table></div></td></tr>
                                                                    <tr><td></td>
                                                                        <td>
                                                                            <div class="formList-detail"><table>
                                                                                <tr>
                                                                                    <td valign="top" width="150px">ประเภทกรรมการ : </td>
                                                                                    <td>
                                                                                        <asp:RadioButtonList ID="rblCommitteeType" runat="server" AutoPostBack="true" 
                                                                                            CausesValidation="false" 
                                                                                            OnSelectedIndexChanged="rblCommitteeType_SelectedIndexChanged" 
                                                                                            RepeatDirection="Horizontal" RepeatLayout="Flow">
                                                                                            <asp:ListItem Selected="True" Text="บุคคลภายใน" Value="1"></asp:ListItem>
                                                                                            <asp:ListItem Text="บุคคลภายนอก" Value="2"></asp:ListItem>
                                                        </asp:RadioButtonList>&#160;<label id="Label13" runat="server"><font color="red">*</font></label> </td></tr>
                                                                                    <tr><td></td>
                                                                                        <td></td></tr></table></div></td></tr>
                                                                    <asp:Panel ID="panelInternal" runat="server" Visible="true">
                                                                        <tr><td></td>
                                                                            <td>
                                                                                <div class="formList-detail"><table>
                                                                                    <tr>
                                                                                        <td valign="top" width="150px">ชื่อกรรมการ : </td>
                                                                                        <td>
                                                                                            <telerik:RadComboBox ID="cbCommitteeInternalName" runat="server" 
                                                                                                AllowCustomText="true" EmptyMessage=".. พิมพ์ที่นี่เพื่อช่วยค้นหา .." 
                                                                                                EnableLoadOnDemand="true" EnableVirtualScrolling="true" Height="230px" 
                                                                                                HighlightTemplatedItems="true" MarkFirstMatch="false" 
                                                                                                OnClientTextChange="onTextChangeGeneral" 
                                                                                                OnItemsRequested="cbCommitteeInternalName_ItemsRequested" 
                                                                                                ShowDropDownOnTextboxClick="true" ShowMoreResultsBox="true" Width="740px"><HeaderTemplate><table 
                                                                                                    cellpadding="0" cellspacing="0" class="font-label"><tr><td align="center" 
                                                                                                        width="200px"><b>หน่วยงาน</b></td><td align="center" width="150px"><b>ชื่อ-สกุล</b></td><td 
                                                                                                        align="center" width="150px"><b>ตำแหน่ง</b></td><td align="center" 
                                                                                                        width="190px"><b>ระดับ</b></td></tr></table>
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <asp:Table ID="tableCommmitteeInternalName" runat="server" CellPadding="0" 
                                                                CellSpacing="0" CssClass="font-label">
                                                            </asp:Table>
                                                        </ItemTemplate>
                                                        </telerik:RadComboBox>&#160;<label id="Label14" runat="server"><font color="red">*</font></label> </td></tr>
                                                                                        <tr><td></td>
                                                                                            <td>
                                                                                                <asp:Panel ID="panelValcbCommitteeInternalName" runat="server"></asp:Panel></td></tr></table></div></td></tr></asp:Panel>
                                                                    <asp:Panel ID="panelExternal" runat="server" Visible="false">
                                                                        <tr><td></td>
                                                                            <td>
                                                                                <div class="formList-detail"><table>
                                                                                    <tr>
                                                                                        <td valign="top" width="150px">ชื่อกรรมการ : </td>
                                                                                        <td>
                                                                                            <asp:TextBox ID="txtCommitteeExternalName" runat="server" CssClass="TextBox" 
                                                                                                Width="350px"></asp:TextBox>&#160;<label id="Label15" runat="server"><font 
                                                                                                color="red">*</font></label> </td></tr>
                                                                                        <tr><td></td>
                                                                                            <td>
                                                                                                <asp:Panel ID="panelValtxtCommitteeExternalName" runat="server"></asp:Panel></td></tr></table></div></td></tr>
                                                                        <tr><td></td>
                                                                            <td>
                                                                                <div class="formList-detail"><table>
                                                                                    <tr>
                                                                                        <td valign="top" width="150px">รายละเอียด : </td>
                                                                                        <td>
                                                                                            <asp:TextBox ID="txtCommitteeExternalDescr" runat="server" CssClass="TextBox" 
                                                                                                Height="50px" TextMode="MultiLine" Width="350px"></asp:TextBox></td></tr>
                                                                                        <tr><td></td>
                                                                                            <td>
                                                                                                <asp:Panel ID="ValtxtCommitteeExternalDescr" runat="server"></asp:Panel></td></tr></table></div></td></tr></asp:Panel>
                                                                    <tr><td></td>
                                                                        <td>
                                                                            <div class="formList-detail"><table>
                                                                                <tr>
                                                                                    <td valign="top" width="150px">ตำแหน่งกรรมการ : </td>
                                                                                    <td>
                                                                                        <telerik:RadComboBox ID="cbCommitteePosition" runat="server" 
                                                                                            AllowCustomText="true" CssClass="RadComboBox" DataTextField="Name" 
                                                                                            DataValueField="Seq" EmptyMessage=".. พิมพ์ที่นี่เพื่อช่วยค้นหา .." 
                                                                                            Filter="Contains" LoadingMessage="กำลังโหลดข้อมูล ..." MarkFirstMatch="false" 
                                                                                            OnClientTextChange="onTextChangeGeneral" ShowDropDownOnTextboxClick="true"></telerik:RadComboBox>&#160;<label 
                                                                                            id="Label16" runat="server"><font color="red">*</font></label> </td></tr>
                                                                                    <tr><td></td>
                                                                                        <td>
                                                                                            <asp:Panel ID="panelValcbCommitteePosition" runat="server"></asp:Panel></td></tr></table></div></td></tr>
                                                                    <tr><td></td>
                                                                        <td>
                                                                            <div class="formList-detail"><table>
                                                                                <tr>
                                                                                    <td valign="top" width="150px">หน้าที่กรรมการ : </td>
                                                                                    <td>
                                                                                        <telerik:RadComboBox ID="cbCommitteeFunction" runat="server" 
                                                                                            AllowCustomText="true" CssClass="RadComboBox" DataTextField="Name" 
                                                                                            DataValueField="Seq" EmptyMessage=".. พิมพ์ที่นี่เพื่อช่วยค้นหา .." 
                                                                                            Filter="Contains" LoadingMessage="กำลังโหลดข้อมูล ..." MarkFirstMatch="false" 
                                                                                            OnClientTextChange="onTextChangeGeneral" ShowDropDownOnTextboxClick="true" 
                                                                                            Width="250px"></telerik:RadComboBox>&#160;<label id="Label17" runat="server"><font 
                                                                                            color="red">*</font></label> </td></tr>
                                                                                <tr>
                                                                                        <td></td><td>
                                                                                        <asp:Panel ID="panelValcbCommitteeFunction" runat="server"></asp:Panel></td></tr></table></div></td></tr></table></td></tr></table></asp:Panel>
                                                    <asp:Panel ID="panelAddCommittee_Wizard" runat="server" Visible="true">
                                                        <table width="98%"><tr>
                                                            <td>
                                                                <table cellpadding="0" cellspacing="0" width="98%">
                                                                    <tr>
                                                                        <td width="30px"></td><td>
                                                                        <div class="formList-detail"><table>
                                                                                <tr><td valign="top" width="150px">วิธีการจัดหา : </td>
                                                                                    <td>
                                                                                        <telerik:RadComboBox ID="cbPurchaseMethod" runat="server" AutoPostBack="true" 
                                                                                            CausesValidation="false" CssClass="RadComboBox" DataTextField="Descr" 
                                                                                            DataValueField="Seq" EmptyMessage=".. เลือกวิธีการจัดหา .." 
                                                                                            EnableLoadOnDemand="true" LoadingMessage="กำลังโหลดข้อมูล ..." 
                                                                                            MarkFirstMatch="false" OnClientTextChange="onTextChangeGeneral" 
                                                                                            OnItemsRequested="cbPurchaseMethod_ItemsRequested" 
                                                                                            OnSelectedIndexChanged="cbPurchaseMethod_SelectedIndexChanged" 
                                                                                            ShowDropDownOnTextboxClick="true" Width="200px"></telerik:RadComboBox></td></tr>
                                                                                <tr><td></td>
                                                                                    <td>
                                                                                        <asp:Panel ID="panelValcbPurchaseMethod" runat="server"></asp:Panel></td></tr></table></div></td></tr></table></td></tr></table>
                                                        <asp:Panel ID="panelCommitteeGroup" runat="server" Visible="false">
                                                            <table width="98%"><tr>
                                                                <td valign="top"><table cellpadding="0" cellspacing="0" width="98%"><tr>
                                                                            <td width="30px"></td><td>
                                                                            <div class="formList-detail">
                                                                                <table width="100%">
                                                                                    <tr>
                                                                                        <td valign="top" width="150px">เลือกจำนวนชุดคณะกรรมการ : </td>
                                                                                        <td valign="top" width="250px">
                                                                                            <asp:CheckBoxList ID="cblCommitteeFunction" runat="server" CellPadding="0" 
                                                                                                CellSpacing="7" DataTextField="Name" DataValueField="Seq" 
                                                                                                RepeatDirection="Vertical">
                                                                </asp:CheckBoxList></td><td valign="top">
                                                                                            <asp:Panel ID="panelNumCommitteeFunction" runat="server">
                                                                                                <asp:Table ID="tableNumCommitteeFunction" runat="server">
                                                                </asp:Table></asp:Panel></td><td align="right" valign="bottom">
                                                                                            <asp:Button ID="btnAddGroupCommittee" runat="server" 
                                                                                                OnClick="btnAddGroupCommittee_Click" Text="เพิ่มรายชื่อคณะกรรมการ"></asp:Button></td></tr></table></div></td></tr></table></td></tr></table></asp:Panel>
                                                        <asp:Panel ID="panelSubCommittee" runat="server" Visible="true">
                                                            <table width="98%"><tr>
                                                                <td valign="top"><table cellpadding="0" cellspacing="0" width="98%"><tr>
                                                                            <td width="30px"></td><td valign="top">&#160;</td></tr></table></td></tr></table></asp:Panel></asp:Panel></asp:Panel><asp:Panel 
                                                    ID="panelGrid_Committee" runat="server" CssClass="panelGrid" ScrollBars="Auto">
                                                <div align="left">
                                                    <telerik:RadGrid ID="Grid_Committee" runat="server" 
                                                        AllowFilteringByColumn="true" AllowMultiRowSelection="True" AllowPaging="false" 
                                                        AllowSorting="True" AutoGenerateColumns="False" CssClass="RadGrid" 
                                                        EnableAJAX="True" GridLines="None" OnItemCommand="Grid_Committee_ItemCommand" 
                                                        ShowStatusBar="false" Skin="Outlook" Width="95%"><mastertableview 
                                                        allowmulticolumnsorting="true" grouploadmode="Client" 
                                                        nomasterrecordstext="&lt;div align=center&gt;&lt;font color=gray&gt;&lt;i&gt;ไม่มีข้อมูล&lt;/i&gt;&lt;/font&gt;&lt;/div&gt;" 
                                                        width="100%"><PagerStyle Mode="NextPrevNumericAndAdvanced" /><Columns><telerik:GridClientSelectColumn 
                                                            UniqueName="ClientSelectColumn"><HeaderStyle HorizontalAlign="Center" 
                                                            Width="20px" /><ItemStyle HorizontalAlign="Center" /></telerik:GridClientSelectColumn><telerik:GridBoundColumn 
                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" 
                                                            DataField="InfoFunction.Name" FilterControlWidth="100%" Groupable="true" 
                                                            GroupByExpression="InfoFunction.Name Group By InfoFunction.Seq" 
                                                            HeaderText="หน้าที่" ShowFilterIcon="false" UniqueName="InfoFunction.Name" 
                                                            Visible="false"><HeaderStyle HorizontalAlign="Center" Width="50px" /><ItemStyle 
                                                            HorizontalAlign="Left" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" DataField="Ref_no" 
                                                            FilterControlWidth="100%" Groupable="true" 
                                                            GroupByExpression="Ref_no Group By Ref_no" HeaderText="ชุดที่" 
                                                            ShowFilterIcon="false" UniqueName="Ref_no" Visible="false"><HeaderStyle 
                                                            HorizontalAlign="Center" Width="50px" /><ItemStyle HorizontalAlign="Left" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" 
                                                            DataField="InfoPosition.Name" FilterControlWidth="100%" 
                                                            HeaderStyle-HorizontalAlign="Center" HeaderText="ตำแหน่ง" 
                                                            ShowFilterIcon="false" UniqueName="InfoPosition.Name"><HeaderStyle 
                                                            HorizontalAlign="Center" Width="100px" /><ItemStyle 
                                                            HorizontalAlign="Left" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" 
                                                            DataField="InfoType.Name" FilterControlWidth="100%" 
                                                            HeaderStyle-HorizontalAlign="Center" HeaderText="ประเภท" ShowFilterIcon="false" 
                                                            UniqueName="InfoType.Name"><HeaderStyle HorizontalAlign="Center" 
                                                            Width="80px" /><ItemStyle HorizontalAlign="Left" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" DataField="Name" 
                                                            FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" 
                                                            HeaderText="ชื่อกรรมการ" ShowFilterIcon="false" UniqueName="Name"><HeaderStyle 
                                                            HorizontalAlign="Center" Width="150px" /><ItemStyle 
                                                            HorizontalAlign="Left" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" DataField="Descr" 
                                                            FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" 
                                                            HeaderText="รายละเอียด" ShowFilterIcon="false" UniqueName="Descr"><HeaderStyle 
                                                            HorizontalAlign="Center" /><ItemStyle HorizontalAlign="Left" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                            DataField="Com_type" HeaderStyle-HorizontalAlign="Center" UniqueName="Com_type" 
                                                            Visible="false"><HeaderStyle HorizontalAlign="Center" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                            DataField="InfoEmployee.Seq" HeaderStyle-HorizontalAlign="Center" 
                                                            UniqueName="InfoEmployee.Seq" Visible="false"><HeaderStyle 
                                                            HorizontalAlign="Center" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                            DataField="Ex_name" HeaderStyle-HorizontalAlign="Center" UniqueName="Ex_name" 
                                                            Visible="false"><HeaderStyle HorizontalAlign="Center" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                            DataField="Ex_descr" HeaderStyle-HorizontalAlign="Center" UniqueName="Ex_descr" 
                                                            Visible="false"><HeaderStyle HorizontalAlign="Center" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                            DataField="InfoFunction.Seq" HeaderStyle-HorizontalAlign="Center" 
                                                            UniqueName="InfoFunction.Seq" Visible="false"><HeaderStyle 
                                                            HorizontalAlign="Center" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                            DataField="InfoPosition.Seq" HeaderStyle-HorizontalAlign="Center" 
                                                            UniqueName="InfoPosition.Seq" Visible="false"><HeaderStyle 
                                                            HorizontalAlign="Center" /></telerik:GridBoundColumn>
                                        </Columns>
                                        </mastertableview>
                                        <clientsettings enablerowhoverstyle="true">
                                        <selecting allowrowselect="True" />
                                        </clientsettings>
                                        </telerik:RadGrid></div><br /></asp:Panel></div></div></asp:Panel></td></tr></table></asp:Panel>
                        
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="RadPageView4" runat="server">
                        <asp:Panel ID="panel_File" runat="server">
                            <table cellpadding="0" cellspacing="0" 
                                style="width: 98%;"><tr valign="top"><td valign="top"><asp:Panel 
                                    ID="panelCommand_File" runat="server"><div class="bigModuleFull"><div 
                                        class="bigModuleBottomFull"><table><tr class="command-list"><td 
                                            class="command-item" style="border: none"><asp:LinkButton 
                                            ID="ShowGrid_File" runat="server" CausesValidation="false" 
                                            CssClass="LinkButton" OnClick="ShowGrid_File_Click"> <img alt="" 
                                            src="../Image/Grid/table.gif" style="border:0px;vertical-align:middle;" />&#160;&#160;แสดงข้อมูลทั้งหมด </asp:LinkButton></td><td 
                                            class="command-item"><asp:LinkButton ID="AddNew_File" runat="server" 
                                                CausesValidation="false" CssClass="LinkButton" OnClick="AddNew_File_Click"> <img 
                                                alt="" src="../Image/Grid/AddRecord.gif" 
                                                style="border:0px;vertical-align:middle;" />&#160;&#160;เพิ่มข้อมูลใหม่ </asp:LinkButton></td><td 
                                            class="command-item"><asp:LinkButton ID="AddNewSave_File" runat="server" 
                                                CssClass="LinkButton" OnClick="AddNewSave_File_Click" Visible="false"> <img 
                                                alt="" src="../Image/Grid/Cmd_Save.gif" 
                                                style="border:0px;vertical-align:middle;" />&#160;&#160;บันทึกข้อมูล </asp:LinkButton></td><td 
                                            class="command-item"><asp:LinkButton ID="Delete_File" runat="server" 
                                                CausesValidation="false" CssClass="LinkButton" OnClick="Delete_File_Click" 
                                                OnClientClick="javascript:return confirm('ยืนยันการลบข้อมูลที่เลือก')"> <img 
                                                alt="" src="../Image/Grid/Delete.gif" 
                                                style="border:0px;vertical-align:middle;" />&#160;&#160;ลบข้อมูล </asp:LinkButton></td></tr></table></div></div></asp:Panel></td></tr><tr><td><asp:Panel 
                                    ID="panelData_File" runat="server"><div class="bigModuleFull"><div 
                                        class="bigModuleBottomFull"><asp:Panel ID="panelHeaderList4" runat="server"><div 
                                            class="header-grid"><asp:Label ID="Label9" runat="server" 
                                            Text="ข้อมูลเอกสารแนบ"></asp:Label></div></asp:Panel><asp:Panel 
                                        ID="panelList_File" runat="server" CssClass="panelList" ScrollBars="Auto" 
                                        Visible="false"><table cellpadding="0" cellspacing="0" width="98%"><tr><td 
                                                width="30px"></td><td><div class="formList-detail"><table><tr><td valign="top" 
                                                    width="100px">ชื่อไฟล์ : </td><td><asp:TextBox ID="txtFileName" runat="server" 
                                                        Width="650px"></asp:TextBox>&#160;<label id="Label10" runat="server"><font 
                                                        color="red">*</font></label> </td></tr><tr><td></td><td><asp:Panel 
                                                        ID="panelValtxtFileName" runat="server"></asp:Panel></td></tr></table></div></td></tr><tr><td 
                                                    width="30px"></td><td><div class="formList-detail"><table><tr><td valign="top" 
                                                        width="100px">ที่อยู่ไฟล์ : </td><td><div id="uploadFile_div" runat="server"><input 
                                                            id="attachment" runat="server" name="attachment" onchange="getSourceFile();" 
                                                            onkeydown="return false;" size="90" type="file" /> &#160;<label id="Label11" 
                                                            runat="server"><font color="red">*</font></label> </div></td></tr><tr><td></td><td><asp:Panel 
                                                            ID="panelValattachment" runat="server"></asp:Panel></td></tr></table></div></td></tr></table></asp:Panel><asp:Panel 
                                        ID="panelGrid_File" runat="server" CssClass="panelGrid" ScrollBars="Auto"><div 
                                            align="left"><telerik:RadGrid ID="Grid_File" runat="server" 
                                                AllowFilteringByColumn="true" AllowMultiRowSelection="True" AllowPaging="false" 
                                                AllowSorting="True" AutoGenerateColumns="False" CssClass="RadGrid" 
                                                EnableAJAX="True" GridLines="None" OnItemCommand="Grid_File_ItemCommand" 
                                                ShowStatusBar="false" Skin="Outlook" Width="95%"><mastertableview 
                                                allowmulticolumnsorting="true" grouploadmode="Client" 
                                                nomasterrecordstext="&lt;div align=center&gt;&lt;font color=gray&gt;&lt;i&gt;ไม่มีข้อมูล&lt;/i&gt;&lt;/font&gt;&lt;/div&gt;" 
                                                width="100%"><PagerStyle Mode="NextPrevNumericAndAdvanced" /><Columns><telerik:GridClientSelectColumn 
                                                    UniqueName="ClientSelectColumn"><HeaderStyle HorizontalAlign="Center" 
                                                    Width="20px" /><ItemStyle HorizontalAlign="Center" /></telerik:GridClientSelectColumn><telerik:GridTemplateColumn 
                                                    AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" DataField="Name" 
                                                    FilterControlWidth="100%" HeaderText="ชื่อไฟล์" ShowFilterIcon="false" 
                                                    SortExpression="Name" UniqueName="Name"><HeaderStyle 
                                                    HorizontalAlign="Center" /><ItemStyle HorizontalAlign="Left" /><ItemTemplate><asp:HyperLink 
                                                        ID="lkName" runat="server" 
                                                        NavigateUrl='<%# "../Form/Sys_File_Form.aspx?file=" + Eval("Dest_path") %>' 
                                                        Target="_blank" Text='<%# Eval("Name") %>'></asp:HyperLink>
                                                </ItemTemplate>
                                                </telerik:GridTemplateColumn><telerik:GridBoundColumn 
                                                    AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" 
                                                    DataField="File_Info.Extension" FilterControlWidth="100%" 
                                                    HeaderStyle-HorizontalAlign="Center" HeaderText="นามสกุลไฟล์" 
                                                    ShowFilterIcon="false" UniqueName="FileInfo.Extension"><HeaderStyle 
                                                    HorizontalAlign="Center" Width="100px" /><ItemStyle 
                                                    HorizontalAlign="Center" /></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                    DataField="Dest_path" HeaderStyle-HorizontalAlign="Center" 
                                                    UniqueName="Dest_path" Visible="false"><HeaderStyle 
                                                    HorizontalAlign="Center" /></telerik:GridBoundColumn>
                                            </Columns>
                                            </mastertableview>
                                            <clientsettings enablerowhoverstyle="true">
                                            <selecting allowrowselect="True" />
                                            </clientsettings>
                                            </telerik:RadGrid></div><br /></asp:Panel></div></div></asp:Panel><asp:Panel 
                                    ID="panelTool_File" runat="server"><div class="bigModuleFull"><div 
                                            class="bigModuleBottomFull"><table width="100%"><tr class="command-list"><td 
                                                align="left" class="command-item" style="border: none"><asp:LinkButton 
                                                ID="backButton_File" runat="server" OnClick="backButton_File_Click"> <img 
                                                alt="" src="../Image/Button/back_button.png" 
                                                style="border:0px;vertical-align:middle;" /> </asp:LinkButton></td><td 
                                                align="right" class="command-item" style="border: none"><asp:LinkButton 
                                                    ID="finishButton_File" runat="server" OnClick="finishButton_File_Click" 
                                                    OnClientClick="javascript:return confirm('ยืนยันการบันทึกข้อมูล');"> <img 
                                                    alt="" src="../Image/Button/finish_button.png" 
                                                    style="border:0px;vertical-align:middle;" /> </asp:LinkButton></td></tr></table></div></div></asp:Panel></td></tr></table></asp:Panel>
                    </telerik:RadPageView>
                </telerik:RadMultiPage>
            </div>
        </asp:Panel>
    </form>
</body>
</html>
